package com.xxp.mapper;


import com.xxp.controller.request.BaseRequest;
import com.xxp.controller.request.CategoryRequest;
import com.xxp.entity.Admin;
import com.xxp.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {

    /**
     * 分页查询
     */
    List<Category> listByCondition(CategoryRequest baseRequest);
    /**
     * 查询所有
     */
    List<Category> list();
    /**
     * 新增
     * @param category
     */
    void save(Category category);

    /**
     * 根据ID查询
     */
    Category getById(Integer id);

    /**
     * 根据ID修改
     */
    void update(Category category);

    /**
     * 根据ID删除
     */
    void deleteById(Integer id);



}
